var _EsdDynamicTransformationFunction = function($){
/**
* 命名空间定义
*/
var _EsdDynamicTransformationScript = {};
_EsdDynamicTransformationScript.navBlock = {}; // 定义区域跳转类
_EsdDynamicTransformationScript.navBlock.selector = {};
/**
* 文本链接 a
*/
//保证所有a标签都有href
$("a").each(function(){

var aHref = this.href;
if( aHref=="" || aHref==undefined ){
$(this).attr("href","javascript:void(0)");
}

//给a标签加title
var aTitle = this.title;
var aText = this.text;

if( aTitle=="" || aTitle==undefined ){
if( aText!="" || aText!=undefined ){
$(this).attr("title",$.trim(aText));
}
}

});

//select下的option添加title
$("option").each(function(){
var oTitle = this.title;
var oText = this.text;
if( oTitle=="" || oTitle==undefined ){
if( oText!="" || oText!=undefined ){
$(this).attr("title",$.trim(oText));
}
}
});
/**
* 图片处理片段
*/

$('img[src="./images/xinxiang.png"]').attr('title','吉林省纪委驻审计厅纪检组信箱').attr('alt','吉林省纪委驻审计厅纪检组信箱');$('img[src="./images/tczd20171026_1712071152_hx.png"]').attr('title','突出重点 求真务实').attr('alt','突出重点 求真务实');$('img[src="./sy/sjdt/tpxw/201911/W020191129572251341515.jpg"]').attr('title','辽源市审计局召开内部审计工作座谈会暨经验交流会').attr('alt','辽源市审计局召开内部审计工作座谈会暨经验交流会');$('img[src="./images/xxgk_title_1712071152_hx.png"]').attr('title','政府信息公开').attr('alt','政府信息公开');$('img[src="./sy/sjdt/tpxw/201912/W020191227636066226282.jpg"]').attr('title','延边州审计局举办全州审计人员综合能力提升培训班').attr('alt','延边州审计局举办全州审计人员综合能力提升培训班');$('img[src="./images/yjsxx.jpg"]').attr('title','预决算信息').attr('alt','预决算信息');$('img[src="./images/yfsj20171026_1712071152_hx.png"]').attr('title','依法审计 服务大局 围绕中心').attr('alt','依法审计 服务大局 围绕中心');$('img[src="./sy/sjdt/tpxw/201912/W020191209503267331843.jpg"]').attr('title','省审计厅赴浙江省审计厅对接东西部扶贫协作审计工作').attr('alt','省审计厅赴浙江省审计厅对接东西部扶贫协作审计工作');$('img[src="./sy/ztzl/201907/W020190711511684169676.jpg"]').attr('title','不忘初心 牢记使命 征求意见栏').attr('alt','不忘初心 牢记使命 征求意见栏');$('img[src="./images/banner3_20171026_1712071152_hx.png"]').attr('title','头部背景图片').attr('alt','头部背景图片');$('img[src="//dcs.conac.cn/image/red.png"]').attr('title','党政机关').attr('alt','党政机关');$('img[src="./sy/sjdt/tpxw/201912/W020191224306991436542.jpg"]').attr('title','桦甸市审计局组织年轻审计干部开展专题调研').attr('alt','桦甸市审计局组织年轻审计干部开展专题调研');$('img[src="./images/xxhd_1712071152_hx.png"]').attr('title','政民互动').attr('alt','政民互动');$('img[src="./images/beian_0131.png"]').attr('title','吉公网安备').attr('alt','吉公网安备');$('img[src="./images/logo_20191101.png"]').attr('title','中国审计图标').attr('alt','中国审计图标');$('img[src="./sy/ztzl/201712/W020171229516666908137.jpg"]').attr('title','坚定理想信念 做最美审计人').attr('alt','坚定理想信念 做最美审计人');$('img[src="./sy/ztzl/201712/W020190711509659243298.jpg"]').attr('title','学习贯彻习近平新时代 中国特色社会主义思想').attr('alt','学习贯彻习近平新时代 中国特色社会主义思想');$('img[src="./sy/sjdt/tpxw/201912/W020191206617487139375.jpg"]').attr('title','长春市审计局扎实开展跟踪审计使旧城改造工程“面子”好看“里子”暖心').attr('alt','长春市审计局扎实开展跟踪审计使旧城改造工程“面子”好看“里子”暖心');$('img[src="./sy/sjdt/tpxw/201912/W020191213740629043341.jpg"]').attr('title','双阳区审计局加班加点整理贫困户档案').attr('alt','双阳区审计局加班加点整理贫困户档案');$('img[src="./images/banner4_20171026_1712071152_hx.png"]').attr('title','头部背景图片').attr('alt','头部背景图片');$('img[src="./images/jlsjt20171026_1712071152_hx.png"]').attr('title','吉林省审计厅').attr('alt','吉林省审计厅');$('img[src="./images/banner2_20171026_1712071152_hx.png"]').attr('title','头部背景图片').attr('alt','头部背景图片');$('img[src="http://pucha.kaipuyun.cn/exposure/images/jiucuo.png?v=2200000067"]').attr('title','无效图片').attr('alt','无效图片');

//img
$("img").each(function(){
//给图片加alt/title
var imgAlt = this.alt,
imgTitle = this.title,
imgSrc = this.src,
parentText = this.parentElement.text;

if(this.alt=="" || this.alt==undefined){
if(imgTitle!="" && imgTitle!=undefined){
$(this).attr("alt",imgTitle);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("alt",parentText);
}
}
if(this.title=="" || this.title==undefined){
if(imgAlt!="" && imgAlt!=undefined){
$(this).attr("title",imgAlt);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("title",parentText);
}
}
})

$("img").each(function(){
if( (this.alt=="" && this.title=="")||(this.alt==undefined && this.title==undefined) ){
$(this).attr("title","图片");
$(this).attr("alt","图片");
}
})
/**
* 共通头部
*/
/**
* 主导航
*/
// ------------------------导航处理 开始--------------------------------------
_EsdDynamicTransformationScript.navTabChange = function (focusObjSelector, listObjSelector, mouseEventObjSelector, keyDownNum, listElementsSelector, prevMouseEventObjSelector, prevListObjsSelector) {
var keydownName = "keydown.navKeydown_" + keyDownNum;
var keydownName2 = keydownName + "_1";
$(focusObjSelector).focus(function () {
if ($(listObjSelector).is(":hidden")) {
$(mouseEventObjSelector).mouseover();
}
$(this).bind(keydownName, function (e) {
if (e.shiftKey && e.keyCode == 9) {
if (prevMouseEventObjSelector != "") {
$(focusObjSelector).mouseout();
$(prevMouseEventObjSelector+" ul").mouseover();
$(prevListObjsSelector).last().focus();
$(this).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
return false;
}else{
$(focusObjSelector).mouseout();
$(this).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
}
} else if (e.keyCode == 9) {

}
});

});
$(focusObjSelector).blur(function () {
$(this).unbind(keydownName);
});

$(listElementsSelector).last().focus(function () {
$(this).bind(keydownName2, function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(this).unbind(keydownName2);

} else if (e.keyCode == 9) {
$(mouseEventObjSelector).mouseout();
}
});
});
$(listElementsSelector).last().blur(function () {
$(this).unbind(keydownName2);
});
};

_EsdDynamicTransformationScript.navArray = new Array();

_EsdDynamicTransformationScript.nav1 = {}
_EsdDynamicTransformationScript.nav1.focusObjSelector = ".nav li.m:eq(1) h3 a"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav1.listObjSelector = ".nav li.m:eq(1) ul"; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav1.mouseEventObjSelector = ".nav li.m:eq(1)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav1.keyDownNum = 1; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.nav1.listElementsSelector = ".nav li.m:eq(1) ul a"; // 按tab聚焦后 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav1.prevMouseEventObjSelector = ""; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav1.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav1);

_EsdDynamicTransformationScript.nav2 = {}
_EsdDynamicTransformationScript.nav2.focusObjSelector = ".nav li.m:eq(2) h3 a"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav2.listObjSelector = ".nav li.m:eq(2) ul"; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav2.mouseEventObjSelector = ".nav li.m:eq(2)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav2.keyDownNum = 2; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.nav2.listElementsSelector = ".nav li.m:eq(2) ul a"; // 按tab聚焦后 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav2.prevMouseEventObjSelector = ".nav li.m:eq(1)"; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav2.prevListObjsSelector = ".nav li.m:eq(1) ul a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav2);

_EsdDynamicTransformationScript.nav3 = {}
_EsdDynamicTransformationScript.nav3.focusObjSelector = ".nav li.m:eq(3) h3 a"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav3.listObjSelector = ".nav li.m:eq(3) ul"; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav3.mouseEventObjSelector = ".nav li.m:eq(3)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav3.keyDownNum = 3; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.nav3.listElementsSelector = ".nav li.m:eq(3) ul a"; // 按tab聚焦后 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav3.prevMouseEventObjSelector = ".nav li.m:eq(2)"; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav3.prevListObjsSelector = ".nav li.m:eq(2) ul a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav3);

_EsdDynamicTransformationScript.nav4 = {}
_EsdDynamicTransformationScript.nav4.focusObjSelector = ".nav li.m:eq(4) h3 a"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav4.listObjSelector = ".nav li.m:eq(4) ul"; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav4.mouseEventObjSelector = ".nav li.m:eq(4)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav4.keyDownNum = 4; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.nav4.listElementsSelector = ".nav li.m:eq(4) ul a"; // 按tab聚焦后 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav4.prevMouseEventObjSelector = ".nav li.m:eq(3)"; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav4.prevListObjsSelector = ".nav li.m:eq(3) ul a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav4);

_EsdDynamicTransformationScript.nav5 = {}
_EsdDynamicTransformationScript.nav5.focusObjSelector = ".nav li.m:eq(5) h3 a"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav5.listObjSelector = ".nav li.m:eq(5) ul"; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav5.mouseEventObjSelector = ".nav li.m:eq(5)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav5.keyDownNum = 5; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.nav5.listElementsSelector = ".nav li.m:eq(5) ul a"; // 按tab聚焦后 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav5.prevMouseEventObjSelector = ".nav li.m:eq(4)"; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav5.prevListObjsSelector = ".nav li.m:eq(4) ul a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav5);

_EsdDynamicTransformationScript.nav6 = {}
_EsdDynamicTransformationScript.nav6.focusObjSelector = ".nav li.m:eq(6) h3 a"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav6.listObjSelector = ".nav li.m:eq(6) ul"; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav6.mouseEventObjSelector = ".nav li.m:eq(6)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav6.keyDownNum = 6; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.nav6.listElementsSelector = ".nav li.m:eq(6) ul a"; // 按tab聚焦后 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav6.prevMouseEventObjSelector = ".nav li.m:eq(5)"; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav6.prevListObjsSelector = ".nav li.m:eq(5) ul a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav6);

for(var i=0; i<_EsdDynamicTransformationScript.navArray.length; i++){
_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.navArray[i].focusObjSelector, _EsdDynamicTransformationScript.navArray[i].listObjSelector,
_EsdDynamicTransformationScript.navArray[i].mouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].keyDownNum, _EsdDynamicTransformationScript.navArray[i].listElementsSelector,
_EsdDynamicTransformationScript.navArray[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].prevListObjsSelector);
}


//nav的倒切
$(".content a:first").focus(function(){
$(this).bind("keydown.navKeydown_tzgg_list_btn", function (e) {
if(e.shiftKey && e.keyCode==9){
$(_EsdDynamicTransformationScript.nav6.focusObjSelector).mouseover();
$(_EsdDynamicTransformationScript.nav6.listElementsSelector).last().focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
$(".content a:first").blur(function(){
$(this).unbind("keydown.navKeydown_tzgg_list_btn");
});











//------------------------导航处理 结束--------------------------------------
/**
* 网站所有幻灯片
*/


var part_First = function(){

//幻灯片 开始
$("#searchform1 input:last").focus(function () {
$(this).bind("keydown.focusBox_before", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(".focusBox ul.pic a.pic_text:first").focus();
$(".focusBox ul.num li:eq(0)").click();
return false;
}
});
});

$("#searchform1 input:last").blur(function () {
$(this).unbind("keydown.focusBox_before");
});

$(".focusBox ul.pic a.pic_text").each(function(i){

var maxNum = $(".focusBox ul.pic a.pic_text").length;
var index = i;
$(".focusBox ul.num li:eq("+(index)+")").click();
$(this).focus(function(){
$(this).bind("keydown.focusBox_"+index, function (e) {
if (e.shiftKey && e.keyCode == 9) {
if(index==0){
$("#searchform1 input:last").focus();
}else{
$(".focusBox ul.pic a.pic_text:eq("+(index-1)+")").focus();
$(".focusBox ul.num li:eq("+(index-1)+")").click();
}
$(this).unbind("keydown.focusBox_"+index);
return false;
} else if (e.keyCode == 9) {
if(index==maxNum-1){
$(".slideTxtBox .hd .box_icon01").mouseover();
$(".slideTxtBox .bd .bdcon:eq(0) .listmore").focus();
} else {
$(".focusBox ul.pic a.pic_text:eq("+(index+1)+")").focus();
$(".focusBox ul.num li:eq("+(index+1)+")").click();
}
$(this).unbind("keydown.focusBox_"+index);
return false;
}
});
});
$(this).blur(function(){
$(this).unbind("keydown.focusBox_"+index);
});
});

$(".layer .sjyw .slideTxtBox .bd .bdcon:eq(0) a:eq(0)").focus(function(){
$(this).bind("keydown.focusBox_after", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".focusBox ul.num li:last").click();
$(".focusBox ul.pic a.pic_text:last").focus();
return false;
} else if (e.keyCode == 9) {

}
});
});

$(".layer .sjyw .slideTxtBox .bd .bdcon:eq(0) a:eq(0)").blur(function () {
$(this).unbind("keydown.focusBox_after");
});


}
//幻灯片结束
//----------------------------二级页--------------------------------------------------
if(location.href=="http://sjt.jl.gov.cn/sy/zmhd/tsjb/"){ // 投诉举报
_EsdDynamicTransformationScript.iframeInputInterval = setInterval(function(){
if(document.getElementsByTagName("iframe")[0].contentWindow.document.getElementsByTagName("input")[0]!=undefined){
clearInterval(_EsdDynamicTransformationScript.iframeInputInterval);
var inputIframe = document.getElementsByTagName("iframe")[0].contentWindow.document;
$(inputIframe).find("#frmData input:eq(0)").attr({placeholder:"姓名"});
$(inputIframe).find("#frmData input:eq(1)").attr({placeholder:"标题"});
$(inputIframe).find("#frmData textarea:eq(0)").attr({placeholder:"内容"});
$(inputIframe).find("#frmData input:eq(2)").attr({placeholder:"事由所在地"});
$(inputIframe).find("#frmData input:eq(3)").attr({placeholder: "手机号码"});
$(inputIframe).find("#frmData input:eq(4)").attr({placeholder: "联系电话"});
$(inputIframe).find("#frmData input:eq(5)").attr({placeholder: "电子邮箱"});
$(inputIframe).find("#frmData input:eq(6)").attr({placeholder: "家庭地址"});
$(inputIframe).find("#frmData input:eq(7)").attr({placeholder: "详细地址"});
$(inputIframe).find("#frmData input:eq(8)").attr({placeholder: "是否公开，愿意"});
$(inputIframe).find("#frmData input:eq(9)").attr({placeholder: "是否公开，不愿意"});
$(inputIframe).find("#frmData input:eq(8)").attr({title: "是否公开，愿意"});
$(inputIframe).find("#frmData input:eq(9)").attr({title: "是否公开，不愿意"});

$(inputIframe).find("#SubmitButton").attr("title","提交");
$(inputIframe).find("#ResetButton").attr("title","重置");
}
}, 500);
}

if(location.href=="http://sjt.jl.gov.cn/sy/zmhd/zxzx/"){  // 在线咨询
_EsdDynamicTransformationScript.iframeInputInterval = setInterval(function(){
if(document.getElementsByTagName("iframe")[0].contentWindow.document.getElementsByTagName("input")[0]!=undefined){
clearInterval(_EsdDynamicTransformationScript.iframeInputInterval);
var inputIframe = document.getElementsByTagName("iframe")[0].contentWindow.document;
$(inputIframe).find("#frmData input:eq(0)").attr({placeholder:"姓名"});
$(inputIframe).find("#frmData input:eq(1)").attr({placeholder:"性别"});
$(inputIframe).find("#frmData input:eq(2)").attr({placeholder:"联系地址或单位"});
$(inputIframe).find("#frmData input:eq(3)").attr({placeholder: "联系电话"});
$(inputIframe).find("#frmData input:eq(4)").attr({placeholder: "电子邮箱"});
$(inputIframe).find("#frmData input:eq(5)").attr({placeholder: "标题"});
$(inputIframe).find("#frmData textarea:eq(0)").attr({placeholder:"信件内容"});

$(inputIframe).find("#SubmitButton").attr("title","提交");
$(inputIframe).find("#ResetButton").attr("title","重置");
}
}, 500);
}

/**
* 主页js
*/


//第一部分
if(location.href=="http://sjt.jl.gov.cn/" || location.href=="http://sjt.jl.gov.cn/index.html"){

$("#searchform1 input[name='searchword']").attr("title","请输入要搜索的内容");
$("#searchform1 input[type='submit']").attr("title","查询");


// 总计时器，保证目标加载完毕再执行js（轮播+审计要闻）
_EsdDynamicTransformationScript.intervalSjt = setInterval(function(){

if( ( $(".focusBox ul.pic a.pic_text:last") != undefined )
&& ( $(".layer .sjyw .slideTxtBox .bd .bdcon:eq(1) a:first") != undefined )
&& ( $(".layer .sjyw .slideTxtBox .bd .bdcon:eq(2) a:last") != undefined )  ){
clearInterval(_EsdDynamicTransformationScript.intervalSjt);

part_First();
part_Second();

}

}, 500);


var part_Second = function(){


//三层
//各个选项名称
_EsdDynamicTransformationScript.esd1TagNum1 = $(".layer .sjyw .slideTxtBox .hd ul li:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum2 = $(".layer .sjyw .slideTxtBox .hd ul li:eq(1)");
_EsdDynamicTransformationScript.esd1TagNum3 = $(".layer .sjyw .slideTxtBox .hd ul li:eq(2)");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd1TagNum1Content1 = $(".layer .sjyw .slideTxtBox .bd .bdcon:eq(0) a:first");
_EsdDynamicTransformationScript.esd1TagNum2Content1 = $(".layer .sjyw .slideTxtBox .bd .bdcon:eq(1) a:first");
_EsdDynamicTransformationScript.esd1TagNum3Content1 = $(".layer .sjyw .slideTxtBox .bd .bdcon:eq(2) a:first");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd1TagNum1ContentN = $(".layer .sjyw .slideTxtBox .bd .bdcon:eq(0) a:last");
_EsdDynamicTransformationScript.esd1TagNum2ContentN = $(".layer .sjyw .slideTxtBox .bd .bdcon:eq(1) a:last");
_EsdDynamicTransformationScript.esd1TagNum3ContentN = $(".layer .sjyw .slideTxtBox .bd .bdcon:eq(2) a:last");

//第一块
_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esdSJTagCircleNum5.click();
_EsdDynamicTransformationScript.esdSJTagANum5.focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.mouseover();
$(".layer .sjyw .slideTxtBox .bd .bdcon").hide();
$(".layer .sjyw .slideTxtBox .bd .bdcon:eq(1)").show();
_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esd1TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
$(".layer .sjyw .slideTxtBox .bd .bdcon").hide();
$(".layer .sjyw .slideTxtBox .bd .bdcon:eq(0)").show();
_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd1TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown_e2", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum3.mouseover();
$(".layer .sjyw .slideTxtBox .bd .bdcon").hide();
$(".layer .sjyw .slideTxtBox .bd .bdcon:eq(2)").show();
_EsdDynamicTransformationScript.esd1TagNum3Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd1TagNum3Content1.focus(function () {
$(this).bind("keydown.keydown_s3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.mouseover();
$(".layer .sjyw .slideTxtBox .bd .bdcon").hide();
$(".layer .sjyw .slideTxtBox .bd .bdcon:eq(1)").show();
_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd1TagNum3Content1.blur(function () {
$(this).unbind("keydown.keydown_s3");
});


}


}
/**
* 共通底部处理
*/
//友情链接部分

//各个选项名称
_EsdDynamicTransformationScript.esd2TagNum1 = $(".foot_bg .w1099 .link .link_a:eq(0) span");
_EsdDynamicTransformationScript.esd2TagNum2 = $(".foot_bg .w1099 .link .link_a:eq(1) span");
_EsdDynamicTransformationScript.esd2TagNum3 = $(".foot_bg .w1099 .link .link_a:eq(2) span");
_EsdDynamicTransformationScript.esd2TagNum4 = $(".foot_bg .w1099 .link .link_a:eq(3) span");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd2TagNum1Content1 = $(".foot_bg .w1099 .link .link_a:eq(0) .footer_link_list a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum2Content1 = $(".foot_bg .w1099 .link .link_a:eq(1) .footer_link_list a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum3Content1 = $(".foot_bg .w1099 .link .link_a:eq(2) .footer_link_list a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum4Content1 = $(".foot_bg .w1099 .link .link_a:eq(3) .footer_link_list a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd2TagNum1ContentN = $(".foot_bg .w1099 .link .link_a:eq(0) .footer_link_list a:last");
_EsdDynamicTransformationScript.esd2TagNum2ContentN = $(".foot_bg .w1099 .link .link_a:eq(1) .footer_link_list a:last");
_EsdDynamicTransformationScript.esd2TagNum3ContentN = $(".foot_bg .w1099 .link .link_a:eq(2) .footer_link_list a:last");
_EsdDynamicTransformationScript.esd2TagNum4ContentN = $(".foot_bg .w1099 .link .link_a:eq(3) .footer_link_list a:last");

if(location.href=="http://sjt.jl.gov.cn/" || location.href=="http://sjt.jl.gov.cn/index.html"){
$(".layer .w260 .border:eq(2) a").focus(function () {
$(this).bind("keydown.keydown_0", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1.mouseover();
_EsdDynamicTransformationScript.esd2TagNum1Content1.focus();
return false;
}
});
});
$(".layer .w260 .border:eq(2) a").blur(function () {
$(this).unbind("keydown.keydown_0");
});
}

if(location.href=="http://sjt.jl.gov.cn/sy/jggk/" || location.href=="http://sjt.jl.gov.cn/sy/sjdt/"
|| location.href=="http://sjt.jl.gov.cn/sy/sjgg/" || location.href=="http://sjt.jl.gov.cn/sy/sjzc/"){

$(".bgbg a:last").focus(function () {
$(this).bind("keydown.keydown_0", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1.mouseover();
_EsdDynamicTransformationScript.esd2TagNum1Content1.focus();
return false;
}
});
});
$(".bgbg a:last").blur(function () {
$(this).unbind("keydown.keydown_0");
});
}

if(location.href=="http://sjt.jl.gov.cn/sy/zmhd/tsjb/"){
$(document.getElementsByTagName("iframe")[0].contentWindow.document.body).find("input#ResetButton").focus(function () {
$(this).bind("keydown.keydown_0", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1.mouseover();
_EsdDynamicTransformationScript.esd2TagNum1Content1.focus();
return false;
}
});
});
$(document.getElementsByTagName("iframe")[0].contentWindow.document.body).find("input#ResetButton").blur(function () {
$(this).unbind("keydown.keydown_0");
});
}


//第一块
_EsdDynamicTransformationScript.esd2TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1.mouseout();
} else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd2TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2.mouseover();
_EsdDynamicTransformationScript.esd2TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esd2TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1.mouseover();
_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd2TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd2TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown_e2", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum3.mouseover();
_EsdDynamicTransformationScript.esd2TagNum3Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd2TagNum3Content1.focus(function () {
$(this).bind("keydown.keydown_s3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2.mouseover();
_EsdDynamicTransformationScript.esd2TagNum2ContentN.focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd2TagNum3Content1.blur(function () {
$(this).unbind("keydown.keydown_s3");
});

_EsdDynamicTransformationScript.esd2TagNum3ContentN.focus(function () {
$(this).bind("keydown.keydown_e3", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum4.mouseover();
_EsdDynamicTransformationScript.esd2TagNum4Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum3ContentN.blur(function () {
$(this).unbind("keydown.keydown_e3");
});

//第四块
_EsdDynamicTransformationScript.esd2TagNum4Content1.focus(function (e) {
$(this).bind("keydown.keydown_4", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum3.mouseover();
_EsdDynamicTransformationScript.esd2TagNum3ContentN.focus();
return false;
} else if (e.keyCode == 9) {

}
});

});
_EsdDynamicTransformationScript.esd2TagNum4Content1.blur(function () {
$(this).unbind("keydown.keydown_4");
});

//定义跳转 使用jquery选择器语法
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
_EsdDynamicTransformationScript.navBlock.selector.top = ".bgbg_top";
_EsdDynamicTransformationScript.navBlock.selector.nav = ".navBar";
_EsdDynamicTransformationScript.navBlock.selector.footer = ".foot_bg";
_EsdDynamicTransformationScript.navBlock.selector.main = ".bgbg .content";
_EsdDynamicTransformationScript.navBlock.selector.left = ".w250";
_EsdDynamicTransformationScript.navBlock.selector.right = ".w774";
_EsdDynamicTransformationScript.navBlock.selector.content = ".atrcile";

//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
_EsdDynamicTransformationScript.navBlock.activateArray = [
".w1099:eq(0)", ".w1099:eq(0) .navBar", ".bgbg .content", ".tzgg_search .tzgg", ".tzgg_search .search", ".layer:eq(0) .focusBox",
".layer:eq(0) .sjyw", ".layer:eq(0) .ztzl", ".layer:eq(1) .index_layer:eq(0)", ".layer:eq(1) .index_layer:eq(1)",
".layer:eq(1) .index_layer:eq(2)", ".layer:eq(1) .index_layer:eq(3)",  ".layer:eq(1) .w260",
".w250", ".w774", ".atrcile", ".w1099:eq(1) .link", ".w1099:eq(1) .foot"
]

for(var i=0; i<_EsdDynamicTransformationScript.navBlock.activateArray.length;i++){
$(_EsdDynamicTransformationScript.navBlock.activateArray[i]).addClass("navBlock");
}


if(window.location.href == 'http://sjt.jl.gov.cn/sy/sjdt/'){
$(".content > div > div").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个

}
/**
* 区域导航、调试开关
*/

$(document).bind("keydown.keydown_9001", function(e) {
if (e.shiftKey && e.keyCode == 20) {
$("*").focus(function() {
$(this).css({
"outline" : "2px dashed red"
});
});
$("*").blur(function() {
$(this).css({
"outline" : "0px black"
});
});
}
});

_EsdDynamicTransformationScript.navBlock.debug = true; // 是否是调试模式，调试模式有红边线，非调试模式关闭红边框
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
// 快捷键定义区
//_EsdDynamicTransformationScript.navBlock.key = {};

//_EsdDynamicTransformationScript.navBlock.key.top = "alt+1"; // (top)
//_EsdDynamicTransformationScript.navBlock.key.nav = "alt+2"; // (nav)
//_EsdDynamicTransformationScript.navBlock.key.main = "alt+3"; // (main)
//_EsdDynamicTransformationScript.navBlock.key.content = "alt+4"; // (content)
//_EsdDynamicTransformationScript.navBlock.key.left = "alt+5"; // (left)
//_EsdDynamicTransformationScript.navBlock.key.right = "alt+6"; // (right)
//_EsdDynamicTransformationScript.navBlock.key.footer = "alt+7"; // (footer)
//_EsdDynamicTransformationScript.navBlock.key.down = "alt+8"; // (down)
//_EsdDynamicTransformationScript.navBlock.key.up = "alt+9"; // (up);

// 以下变量主要用于区块跳转
_EsdDynamicTransformationScript.navBlock.sIndex = -1; // 当前栏目下标
_EsdDynamicTransformationScript.navBlock.maxIndex = -1; // 保存目前所有class="navBlock"的区域块总数量，栏目总量下标。
_EsdDynamicTransformationScript.navBlock.minIndex = 0; // 栏目数量起始下标

// 主要代码区域

// 导航跳转
_EsdDynamicTransformationScript.navBlock.keyShowSelect = function(i) {
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, el) {
if (i == index) {
_EsdDynamicTransformationScript.navBlock.debugView(el);
$(el).find("a").each(function(i, e) {
if (i == 0) {
$(e).focus();
}
});

}
});
}

// 获取所有class=navBlock的区域的总数量，初始化轮训所有需要跳转的块
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, ehx) {
_EsdDynamicTransformationScript.navBlock.maxIndex++;
});



// 快捷键功能区域
// 跳转到头部alt+1(49)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 49) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.top);
}

});
// 跳转到导航alt+2(50)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 50) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.nav);
}

});
// 跳转到主要区域alt+3(51)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 51) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.main);
}
});

// 跳转到正文区域alt+4(52)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 52) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.content);
}
});

// 跳转到左区域alt+5(53)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 53) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.left);
}
});

// 跳转到右区域alt+6(54)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 54) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.right);
}
});
// 跳转到底部alt+7(55)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 55) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.footer);
}
});
//前进alt+8(56)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 56) {
if (_EsdDynamicTransformationScript.navBlock.sIndex < _EsdDynamicTransformationScript.navBlock.maxIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex++;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});

// 后退alt+9(57)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 57) {
if (_EsdDynamicTransformationScript.navBlock.sIndex > _EsdDynamicTransformationScript.navBlock.minIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex--;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});
// 特定区域跳转
_EsdDynamicTransformationScript.navBlock.keySelectScroll = function(id) {
if ($(id).length > 0) {
_EsdDynamicTransformationScript.navBlock.appendIns(id,true);//插入ins
_EsdDynamicTransformationScript.navBlock.debugView(id);
$(id).find("a").each(function(index) {
if (index == 0) {
$(this).focus();
}
});
_EsdDynamicTransformationScript.navBlock.appendIns(id,false);//清楚ins
} else {
}

}
//为了解决漂浮高等于0的情况下区域显示是一条线
_EsdDynamicTransformationScript.navBlock.appendIns=function(id,b){
if(b==true){
$(id).append("<ins id='esdNavBlockIns' style='clear: both;display: block;'></ins>")
}else{
$("#esdNavBlockIns").remove();
}
}

if (_EsdDynamicTransformationScript.navBlock.debug == true) {
// 如果开启调试模式，添加调试绘制矩形边线
$("body").append("<div id='show_top' class='lineshow'></div>");
$("body").append("<div id='show_bottom' class='lineshow'></div>");
$("body").append("<div id='show_left' class='lineshow'></div>");
$("body").append("<div id='show_right' class='lineshow'></div>");
$(".lineshow").css({
"display" : "none"
});
}
// 开启调试模式后会显示红边
_EsdDynamicTransformationScript.navBlock.debugView = function(e) {
if (_EsdDynamicTransformationScript.navBlock.debug == true) {
var x = $(e).offset();
//var w = parseInt($(e).css("width"));
var w = $(e).outerWidth();//返回元素的宽度（包含 padding 和 border）
//var h = parseInt($(e).css("height"));
var h = $(e).outerHeight();//返回元素的高度（包含 padding 和 border）
$("#show_top").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_bottom").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top + h,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_left").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : "0px",
"height" : h
});
$("#show_right").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left + w,
"width" : "0px",
"height" : h
});
$("html,body").animate({
scrollTop : $("#show_top").offset().top
}, 200);
$(".lineshow").css({
"display" : "block"
});
}
}
};
/**
* 主入口方法
*/

if (window.jQuery == undefined) {
var wzaInitInterval = setInterval(function(){
if(document.body!=null){
clearInterval(wzaInitInterval);
//			var originalWindowOnload = null;
//			if(window.onload!=null){
//				originalWindowOnload = window.onload;
//			}
document.body.onload = function(){
//				originalWindowOnload();
var esdJquery = document.createElement("script");
esdJquery.setAttribute("type", "text/javascript");
esdJquery.setAttribute("src", window.location.protocol + "//" + window.location.href.split("/")[2] + "/wza/bwscript/jquery-1.12.4.min.js");
esdJquery.setAttribute("charset", "utf-8");
esdJquery.setAttribute("id", "ESDWebAppInnerIframe");
document.body.appendChild(esdJquery);
var jqueryLoadInterval = setInterval(function () {
if (window.jQuery != undefined) {
clearInterval(jqueryLoadInterval);
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//						_EsdDynamicTransformationFunction(jQuery)
}
}, 500);
};
}
}, 10);
} else {
jQuery(function(){
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//		_EsdDynamicTransformationFunction(jQuery)
})

}
